package com.taoym.voucher.common.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: taoym
 * @date: 2021/5/9 14:00
 * @desc: 美团活动转链返回值
 */
@Data
public class ActResp {
    @ApiModelProperty(example = "状态码")
    private Integer code;
    @ApiModelProperty(example = "状态值")
    private String msg;
    @ApiModelProperty(example = "活动信息")
    private Act data;

    @Data
    public static class Act {
        @ApiModelProperty(example = "h5链接")
        private String h5;
        @ApiModelProperty(example = "小程序信息")
        private WebAppInfo we_app_info;
        @ApiModelProperty(example = "活动名称")
        private String act_name;
    }

    @Data
    public static class WebAppInfo {
        @ApiModelProperty(example = "活动appId")
        private String app_id;
        @ApiModelProperty(example = "活动小程序路径")
        private String page_path;
        @ApiModelProperty(example = "活动小程序码链接")
        private String miniCode;
    }
}
